home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cgraphix / clinst.c < prev    next >
Text File  |  1986-05-28  |  664b  |  36 lines

  1. /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
  2. #include    <stdio.h>
  3. #define    EXTERN    extern
  4. #include    <typedef.h>
  5. /* program DrawPoints; */
  6.  
  7. extern int InitGraphic();
  8. extern int DrawBorder();
  9. extern int LeaveGraphic();
  10. extern int DrawPoint();
  11.  
  12.  
  13. main()
  14. {
  15.     int i;
  16.  
  17.  
  18.     InitGraphic();                /* init the system and screen    */
  19.     DefineWorld(1, 0., 0., 1000., 1000.);
  20.     SelectWorld(1);
  21.     SelectWindow(1);
  22.     SetBackground(0x11);
  23.     DrawBorder();
  24.  
  25.     for (i = 1; i <= 20; i++) {
  26.         SetLineStyle(i%5);
  27.         DrawLine(50.*i, 0., 50.*i, 1000.);
  28.         DrawLine(0., 50.*i, 1000., 50.*i);
  29.     }
  30.  
  31.     inkey();
  32.  
  33.     LeaveGraphic();
  34. }
  35.  
  36.